package com.linwen.javase.string;

/**
 * @ClassName StringThread
 * @Description
 * @Author lin
 * @Date 2022/3/19 下午3:48
 * @Version V1.0
 */
public class StringBufferThread implements Runnable{
    StringBuffer stringBuffer = new StringBuffer();
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            stringBuffer.append(i%10);
        }
    }
    public String stringBufferToString(){
        return stringBuffer.toString();
    }
}
